from models import Message
from django.contrib import admin

class MessageAdmin(admin.ModelAdmin):
    list_display = ['name', 'time', 'content', 'ip']
    search_fields = ['name', 'content', 'ip']
    list_filter = ['name', 'ip']

admin.site.register(Message,MessageAdmin)
